import Vue from 'vue'
import App from './App.vue'
import router from './router'
import './plugins/element.js'
// 导入全局样式表
import './assets/css/global.css'
// 导入字体图标
import './assets/font_3jb7q1j596s/iconfont.css'
// 导入markdown编译器
import Markdown from 'vue-meditor'

// 导入axios
import axios from 'axios'
axios.defaults.baseURL = 'http://localhost:3000/'
axios.interceptors.request.use(config => {
  config.headers.Authorization = window.sessionStorage.getItem('token')
  return config
})
Vue.prototype.$http = axios

Vue.config.productionTip = false

Vue.component('vue-markdown', Markdown)

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
